﻿namespace("Sieena.Configuration");

(function($, undefined) {

    //Default configuration for loading partials views
    jQuery.ajaxSetup({
        type: "GET",
        dataType: "html",
        error: function (req, status, error) {
            if (Sieena.Common && Sieena.Common.AjaxErrorHandler) {
                Sieena.Common.AjaxErrorHandler(req, status, error);
            }
        }
    });

    Sieena.Configuration.DateFormat = "MM/dd/yyyy";
    Sieena.Configuration.SieenaAnniversary = new Date("02/07/2004");
    Sieena.Configuration.TwitterHashtag = "#uxsconf";
    Sieena.Configuration.LocalCityCode = "MXNL0068";
    Sieena.Configuration.EventFx = "scrollLeft";

    Sieena.Configuration.ReloadTimes = {
        Date:        600000,
        Time:         60000,
        EventData:  7200000,
        EventTimeout:  6000,
        EventDelay:   -2000,
        TwitterData: 150000,
        TwitterPost:   5000,
        NoticeData: 7200000,
        NoticePost:   10000,
        PersonData: 7200000,
        PersonPost:   20000,
        Weather:    3600000
    };

    Sieena.Configuration.Mask = {
        SSN: "999-99-9999",
        Phone: "999-999-9999",
        PhoneExt: "999-999-9999? x9999",
        CheckNumber: "99999999",
        Date: "99/99/?9999",
        USZip: "99999-?9999"
    };

    Sieena.Configuration.DateRanges = {
        MaxBirthday:     50,
        MinWelcome:     -30,
        MaxWelcome:      40,
        MinAnniversary: -30
    };

    Sieena.Configuration.PersonItemType = {
        Birthday:    1,
        Welcome:     2,
        Anniversary: 3
    };

})($);